Glickstein <bobg@zindigo.z-code.com>:
* m/iris4d.h (LIB_STANDARD): Do list -lbsd here.
* s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp
and BSDsetpgrp.
(GETPGRP_NO_ARG): Don't #define this.
* emacs.c (main): Don't test GETPGRP_NO_ARG.
* sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG.
#ifdef BSD
{
-#ifdef GETPGRP_NO_ARG
- inherited_pgroup = getpgrp ();
-#else /* THISSENTENCE_NO_VERB */
inherited_pgroup = getpgrp (0);
-#endif
setpgrp (0, getpid ());
}
#endif
{
int tpgrp;
if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1
-#ifdef GETPGRP_NO_ARG
- && tpgrp == getpgrp ())
-#else
&& tpgrp == getpgrp (0))
-#endif
{
fflush (stdout);
reset_sys_modes ();
#define USG5_3
#define IRIX4
-#define USE_IRIX_BSDPGRP
-
#define HAVE_ALLOCA
#ifndef NOT_C_CODE
#include <alloca.h>
strcpy (pty_name, name); \
}
+/* Use the BSD versions of the getpgrp and setpgrp functions. */
+#define setpgrp(pid, pgrp) BSDsetpgrp((pid), (pgrp))
+#define getpgrp(pid) BSDgetpgrp(pid)
+
/* jpff@maths.bath.ac.uk reports `struct exception' is not defined
on this system, so inhibit use of matherr. */
#define NO_MATHERR